<?php
return array(
	'defaultScope' => array(
		'condition' => "object_type = 'Scenic'",
	),
	'attributeLabels' => array(
		'title' => '景区门票名称',
		'city' => '城市',
	),
	
	'relations' => array(
		'profile' => array(CActiveRecord::HAS_ONE, 'GoodsScenic', 'goods_id'),
	),
	
	'behaviors' => array(
		'fornt' => array(
			'class' => 'coms.behaviors.FrontBehavior',
			'attributes' => array(
				'title' => 'title',
				'img' => 'thumb',
				'time' => array(
					'format' => 'Y-m-d',
					'attribute' => 'create_time'
				)
			),
			'route' => 'mall/scenic/goods'
		),
	),
	
	'class_id' => Goods::TYPE_SCENIC,
	'_import' => array(
		array('*', 'models.Goods//*'),
		array('*', 'models.goods.activePrice//*'),
	),
);